package com.supreme.commonentity.mysql.primary;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_permit
 */
@Data
@TableName(value = "sys_permit")
public class SysPermit implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long permitId;

    /**
     * 权限名
     */
    private String permitName;

    /**
     * 权限类型
     */
    private Integer permitType;

    /**
     * 权限URL
     */
    private String permitUri;

    /**
     * 权限标签
     */
    private String permitTag;

    /**
     * 权限组
     */
    private String permitGroup;

    /**
     * 权限描述
     */
    private String permitDesc;

    /**
     * 是否禁用
     */
    private Boolean disabled;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}